class Buyer < ActiveRecord::Base
  
  validates :full_name, :mobile, :presence => true
  validates :address, :presence => true, :on => :create
  validates :full_name, :uniqueness => { :scope => [:mobile, :link_phone] }
end
